package com.qige.homework;

class IT{
    private String name;
    private int age;
    private String job;
    private int jobYears;
    private String company;
    private String position;

    public IT() {
    }

    public IT(String name, int age, String job, int jobYears, String company, String position) {
        this.name = name;
        this.age = age;
        this.job = job;
        this.jobYears = jobYears;
        this.company = company;
        this.position = position;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public int getJobYears() {
        return jobYears;
    }

    public void setJobYears(int jobYears) {
        this.jobYears = jobYears;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public void work(String company, String position){
        if (age < 15){
            System.out.println("年龄信息无效！已修改默认年龄为15");
            age = 15;
        }
        System.out.println("姓名: " + name);
        System.out.println("年龄: " + age);
        System.out.println("技术方向: " + job);
        System.out.println("工作年限: " + jobYears);
        System.out.println("目前就职于: " + company);
        System.out.println("职务是: " + position);
    }
}
public class homework1 {
}
